﻿using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using MyabpDDD.Demo.Application.yingfu;
using MyabpDDD.Demo.Application.yingfu.Dto;
using MyCompany.MyProject.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace MyabpDDD.Api.Controllers
{
    [Route("api/[controller]")]
    [ApiController]
    public class YingfuyueController : ControllerBase
    {
        private static readonly string[] Summaries = new[]
        {
            "Freezing", "Bracing", "Chilly", "Cool", "Mild", "Warm", "Balmy", "Hot", "Sweltering", "Scorching"
        };
        private readonly IYingfuServicce _service1;
        public YingfuyueController(IYingfuServicce service)
        {
            this._service1 = service;
        }
        [HttpPost]
        public async Task<Chargeablemanagement> Inser(YinfuDto dto)
        {
            return await _service1.Inser(dto);
        }
    }
}
